import Vue from 'vue'
import Router from 'vue-router'

import login from '@/components/login';
import home from '@/components/home';
import homeDetails from '@/components/home-details';
import homeDetailsDialogBox from '@/components/home-details-DialogBox';
// import homeDetailsDialogBoxImgSee from '@/components/home-details-DialogBox-imgSee'; 
import homeHistory from '@/components/home-history';



Vue.use(Router)

export default new Router({
  routes: [
     {
      path: '/',
      name: 'login',
      component: login,
      meta: {
            keepAlive: true, //此组件不需要被缓存
        }
    },
     {
      path: '/home',
      name: 'home',
      component: home,
      meta:{
        keepAlive:true 
      }
    },
     {
      path: '/homeDetails',
      name: 'homeDetails',
      component: homeDetails,
       meta:{
        keepAlive:true 
      }
    },
    //对话框 homeDetailsDialogBox
  {
      path: '/homeDetailsDialogBox',
      name: 'homeDetailsDialogBox',
      component: homeDetailsDialogBox,
      meta:{
        keepAlive:true 
      }
      
    },
    //对话框-查看图片 
    // {
    //       path: '/homeDetailsDialogBoxImgSee',
    //       name: 'homeDetailsDialogBoxImgSee',
    //       component: homeDetailsDialogBoxImgSee
    // },
    //homeHistory
     {
      path: '/homeHistory',
      name: 'homeHistory',
      component: homeHistory,
      meta:{
        keepAlive:true 
      },
    }
   
  ]
})
